#include "base/timing.h"

Timer::Timer() {
   QueryPerformanceFrequency(&freq);
   QueryPerformanceCounter(&start); 
}

double Timer::GetTicks() {
   QueryPerformanceCounter(&end); 
   return (double) ((end.QuadPart - start.QuadPart) / (double) freq.QuadPart * 10000);
}

void Timer::Reset() {
   QueryPerformanceCounter(&start); 
}
